<template>
<!-- 品牌制造商直供 -->
  <div class="brandList">
    <div class="brandListpingpai">品牌制造商直供</div>
    <ul>
      <li v-for="item in brandList" :key="item.id" @click="jumptoBrand(item.id)">
        <img v-lazy="item.pic_url" alt="" />
        <p class="brandListname">{{ item.name }}</p>
        <p class="brandListprice">{{ item.floor_price | filterPrice }}</p>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  props: ["brandList"],
  data() {
    return {};
  },
  methods:{
    jumptoBrand(id){
      this.$router.push("/brand?id="+id)
    }
  }
};
</script>
 
<style lang = "less" scoped>
.brandList {
  margin: 0.2rem 0;
 font-family: "黑体";
  .brandListpingpai {
    height: 0.5rem;
    line-height: 0.5rem;
    background-color: #fff;
    text-align: center;
    font-size: 0.2rem;
  }
}
ul {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: #fff;
}
li {
  width: 49%;
  margin-bottom: 0.02rem;
  position: relative;
  img {
    width: 100%;
  }
  .brandListname {
      /* margin: 0; */
      position: absolute;
      top: .12rem;
      left: .14rem;
  }
  .brandListprice{
      /* margin: 0; */
      position: absolute;
      top: .4rem;
      left: .14rem;
      color: #8B0000;
      font-family: "黑体";
  }
}
</style>